/*
 * userHomedepot.h
 *
 *  Created on: Jun 16, 2011
 *      Author: peckb1
 */

#ifndef USERHOMEDEPOT_H_
#define USERHOMEDEPOT_H_

#include "userLocks.h"
#include "userSharedDefinitions.h"

int GetAisleNumber(int itemIDNumber) {
    return theLocksInHomeDepotEntry.itemsInStore[itemIDNumber]._aisle;
}

int RestockItem(int itemIDNumber) {
    (theLocksInHomeDepotEntry.itemsInStore[itemIDNumber]._quantity) ++;
    return TRUE;
}

int PickupItemFromStore(int itemIDNumber) {
    if (theLocksInHomeDepotEntry.itemsInStore[itemIDNumber]._quantity > 0) {
    	(theLocksInHomeDepotEntry.itemsInStore[itemIDNumber]._quantity)--;
        return TRUE;
    }
    return FALSE;
}


#endif /* USERHOMEDEPOT_H_ */
